import cpp

from Include i, HeaderFile f, string text
where f = i.getIncludedFile() and
i.getFile().getParentContainer() != f.getParentContainer() and 
text = i.getIncludeText()
select f.toString().replaceAll(text.substring(1, text.length()-1), "")